<?php
foreach($data_kursus as $data) {
$nama=$data['nama_santri'];
$nomor=$data['munakosah'];
}
header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=Detail_Kursus-".$nomor.".xls");
header("Pragma: no-cache");
header("Expires: 0");
?>

<style type="text/css">
<!--
body,td,th {
	font-size: 13px;
	font-family:Arial,Helvetica;
	vertical-align:middle;
}
.judul{	
	font-size:20px;
	font-weight: bold;
	text-align:center;
} 

.subjudul{	
	font-size:14px;
	text-align:center;
} 

.headertabel {
	font-size:15px;
	text-align:center;
	background-color:#BFBFBF;
	border-width: 1px;
	border-style:solid;
}

.isi_tabel
{
    border-width: 1px 1px 1px 1px;
	border-style:solid;
	height:25px;
}

-->
</style>

<table border="0" cellspacing="0" width="750">
  <tr>
    <td class="judul" colspan="5" scope="col">
		DETAIL KURSUS SANTRI
    </td>
  </tr>
  <tr>
    <td class="judul" colspan="5" scope="col">
		LEMBAGA KURSUS AL QUR'AN
    </td>
  </tr>
  <tr>
    <td class="subjudul" colspan="5" scope="col">
		YAYASAN MASJID AL FALAH - SURABAYA
    </td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
	<td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
	<td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2">NAMA SANTRI : <?=$nama?></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
	<td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2">NO.INDUK : <?=$nomor?></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
	<td>&nbsp;</td>
  </tr>
    <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
	<td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
	<td>&nbsp;</td>
  </tr>
  <tr>
    <td class="headertabel">No</td>
    <td class="headertabel">Periode</td>
    <td class="headertabel">Kursus</td>
    <td class="headertabel">Nilai Teori</td>
	<td class="headertabel">Nilai Praktek</td>
  </tr>
  <?
	$no = 0;
	foreach($data_kursus as $item) {
		$nama=$item['nama_santri'];
		$nomor=$item['munakosah'];
  ?>
  <tr>
	<td class="isi_tabel"><center><?echo $no=$no+1?></center></td>
	<td class="isi_tabel"><center><?=$item['NAMA_PERIODE']?></center></td>
	<td class="isi_tabel"><center><?=$item['NAMA_KELAS']?></center></td>
	<td class="isi_tabel"><center><?=$item['nilai']?></center></td>
	<td class="isi_tabel"><center><?=$item['nilai_praktek']?></center></td>
   </tr>
  <? } ?>
</table>
  
  
  
  
  